push Custom Video Frame
Sends a custom video frame. The response from this API is either Success or Failure
If Failure then the reason can be,
- IncorrectFrameFormat
- UnsupportedAspectRatio
- NotUsingCustomVideoSource
- CameraNotClosed
- VideoMuted
Parameters
frame
custom video frame of type BJNVideoFrame consists of,
- frameDate - CustomFrameData
- frameOrientation - FrameOrientation
- frameFormat - FrameFormat
- isMirrored - Boolean
CustomFrameData,
- buffer - ByteBuffer
- yStride - Int
- uBuffer - ByteBuffer
- vBuffer - ByteBuffer
- uvRowStride - Int
- uvPixelStride - Int
- width - Int
- height - Int
FrameOrientation,
- ORIENTATION_0 - 0°
- ORIENTATION_90 - 90°
- ORIENTATION_180 - 180°
- ORIENTATION_270 - 270°
FrameFormat,
- ARGB
- RGB565
- I420
- NV21